<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>基本选择器</title>
		<script type="text/javascript" src="../script/jquery-1.7.2.js"></script>
		<script type="text/javascript">
			$(function () {
				//匹配页面中id为testId的标签
				console.log($("#testId"));
				//匹配页面中所有的input标签
				console.log($("input"));
				//匹配页面中class=testClass的标签
				console.log($(".testClass"));
				//匹配id为testId和div标签
				console.log($("#testId,div"));
				//匹配页面中所有的标签
				console.log($("*"));
			});
		</script>
	</head>
	<body>
	<input type="text" id="testId">
	<input type="text" class="testClass">
	<input type="text" class="testClass">
	<input type="text" class="testClass">
	<input type="text" class="testClass">
	<div></div>
	</body>
</html>

